#ifndef MF_TOUCH_APP_H
#define MF_TOUCH_APP_H

//#import "mfConstants.h"
//#import "mfCore.h"
//#import "mfGraphics.h"

class mfTouchApp{
public:
	int mouseX, mouseY; // pure legacy support, these mirror the first finger
	
	virtual void setup(){} // called as the program is allocating
	virtual void update(){} // called once per frame, before setting up the view
	virtual void view(); // called to set up the view
	virtual void draw(){} // called once per frame after view
	virtual void endView(){} // called after the draw to clean up any view
	virtual void exit(){} // called as the program is deallocating
		
	virtual void doubleTap(int x, int y){}
	virtual void touchDown(int x, int y, int touch){}
	virtual void touchMove(int x, int y, int touch){}
	virtual void touchUp(int x, int y, int touch){}
	
	// TODO - add accelerometer gesture?
};

#endif
